package com.circle.model.util;

import com.circle.model.module.DbDao;

public class DbDaoFactory {
    // 私有静态实例
    private static volatile DbDao instance;
    
    // 私有构造函数
    private DbDaoFactory() {}
    
    /**
     * 获取DbDao实例（双重检查锁定）
     */
    public static DbDao getInstance() {
        if (instance == null) {
            synchronized (DbDaoFactory.class) {
                if (instance == null) {
                    instance = new DbDao();
                }
            }
        }
        return instance;
    }
}
